﻿@model SchoolManagerMVC.Web.Areas.Courses.ViewModels.CourseViewModel

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Details</h2>

<fieldset>
    <legend>Course</legend>

    <div class="display-label">CourseName</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.course.CourseName)
    </div>

    <div class="display-label">CourseNumber</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.course.CourseNumber)
    </div>

    <div class="display-label">CourseDescription</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.course.CourseDescription)
    </div>

    <div class="display-label">Teacher</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TeacherName)
    </div>

    <div class="display-label">Department</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.DepartmentName)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.course.CourseID }) |
    @Html.ActionLink("Back to List", "Index")
</p>
